import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.scene.shape.ArcType;
public class aoyun extends Application {


    public static final int WINDOW_WIDTH = 900;
    public static final int WINDOW_HEIGHT= 600;
    public static final int R = 100;


    public static void main(String[] args) {
        launch(args);
    }


    @Override
    public void start(Stage primaryStage) throws Exception {
        Group root = new Group();
        Scene scene = new Scene(root);
        Canvas canvas = new Canvas(WINDOW_WIDTH, WINDOW_HEIGHT);
        GraphicsContext gc = canvas.getGraphicsContext2D();
        gc.setLineWidth(10);
        gc.setStroke(Color.BLUE);
        gc.strokeOval(100, 100, 2*R, 2*R);
        gc.setStroke(Color.YELLOW);
        gc.strokeOval(215, 200, 2*R, 2*R);
        gc.setStroke(Color.BLACK);
        gc.strokeOval(330, 100, 2*R, 2*R);
        gc.setStroke(Color.GREEN);
        gc.strokeOval(445, 200, 2*R, 2*R);
        gc.setStroke(Color.RED);
        gc.strokeOval(560, 100, 2*R, 2*R);

        root.getChildren().add(canvas);
        primaryStage.setTitle("HappyFace in JavaFX");
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}